﻿using System;
using System.Windows.Forms;

namespace MyUtils.PInvoke
{
	public static class GlassWindowWinForms
	{

		[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
		public static bool MakeGlassWindow(this Form winForm, bool enabled)
		{
			if (winForm == null)
			{
				throw new ArgumentNullException("winForm");
			}
			return winForm.Handle.Glass(enabled);
		}


	}
}
